var arr = [1, 2, 3, 4];
var result = arr.join(',');
console.log(result);
